package com.example.photongrid;

import com.example.photongrid.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.main);
	}

	public void onClick(View view) {
		int id = view.getId();
		if (id == R.id.startGameButton) {
			Intent myIntent = new Intent(this, GameActivity.class);
			startActivity(myIntent);
		} 
		else if (id == R.id.button2) {

			finish();
		}
		else if (id == R.id.Button01)
		{
			Intent myIntent = new Intent(this, OptionServer.class);
			startActivity(myIntent);
		}
		else if (id == R.id.Button02)
		{
			Intent myIntent = new Intent(this, OptionsMenu.class);
			startActivity(myIntent);
		}

	}

}
